<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>密码登录</title>
	</head>
	<body>
		<script type="text/javascript">
			var rightPwd="123";
			var inputPwd=prompt("请您输入密码：");
			
			if(rightPwd==inputPwd){
				alert("登录成功！");
			}else{
				alert("您的密码有误！");
			}
		</script>
	</body>
</html>
